home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2005 November
/
PCWorld_2005-11_cd.bin
/
software
/
topware
/
skypetoolbar
/
SkypeForInternetExplorer.exe
/
/
menu.tmpl
< prev
next >
Wrap
Text File
|
2005-09-22
|
8KB
|
158 lines
<style>
.skype_tb_table {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
border: 1; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; background-color:white; line-height: normal;
vertical-align: top; background-position: 0 0; text-indent:0; border-width:thin;
}
.skype_tb_tr {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
background:background-image; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; line-height: normal; vertical-align: top;
border: 1; line-height: normal; vertical-align: middle; border-width:thin; text-indent:0;
}
.skype_tb_td {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
background:background-image; padding: 0px 0px 0px 0px; margin: 0px 0px 0px 0px; line-height: normal;
vertical-align: middle; border: 1; background-position: 0 0; text-indent:0; border-width:thin;
}
.skype_tb_link,.skype_tb_link:link,.skype_tb_link:visited {
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px; font-style: normal; font-weight: normal;
color: #003366; text-decoration: underline; background:background-image;
}
.skype_tb_link:hover,.skype_tb_link:active {
color: #FF0000; background:background-image; font-style: normal; font-weight: normal;
font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 9px;
}
.skype_tb_img { border:0px; padding: 0px 0px 0px 0px; }
</style>
<iframe id=skype_tb_hideframe style="display:none;LEFT:0px;POSITION:absolute;top:0px;width:180px;height:130px;z-index:0;" frameBorder=1 scrolling=no></iframe>
<script defer>
var skype_curid=0, skype_active=false, skype_showseed=0, skype_ctm=0;
function HideSkype() {
if(!skype_active)
HideSkypeFull();
else
setTimeout("HideSkype()",2000);
}
function HideSkype2() {
skype_showseed=0;
if(!skype_active)
HideSkypeFull();
else {
skype_active=false;
setTimeout("HideSkype()",6000);
}
}
function HideSkypeFull() {
skype_active=false;
document.all.skype_menu.style.visibility="hidden";
document.all.skype_tb_menu_add.style.visibility="hidden";
document.all.skype_tb_menu_chat.style.visibility="hidden";
document.all.skype_tb_hideframe.style.display = "none";
}
function CheckSkype() {
skype_active=true;
}
function ShowSkype(id,sadd,skypeout,name) {
skype_active=true;
if(document.all.skype_menu.style.visibility!="hidden" && skype_curid==id)
return;
skype_showseed=Math.random();
clearTimeout(skype_ctm);
skype_ctm=
setTimeout('DoShowSkype('+skype_showseed+','+id+','+sadd+','+skypeout+',"'+name+'",'+event.clientY+','+event.clientX+')',500);
}
function DoShowSkype(seed,id,sadd,skypeout,name,cY,cX) {
if(seed!=skype_showseed)
return;
skype_showseed=0;
skype_curid=id;
var menu=document.all.skype_menu;
menu.style.visibility="visible";
document.all.skype_tb_menu_add.style.visibility=(sadd)?"visible":"hidden";
document.all.skype_tb_menu_chat.style.visibility=(skypeout)?"hidden":"visible";
var m_name=new String(name);
if(name.length>16) {
m_name=m_name.substring(0,13);
document.all.call_text.innerText='Call '+m_name+'...';
document.all.chat_text.innerText='Chat '+m_name+'...';
} else {
document.all.call_text.innerText='Call '+m_name;
document.all.chat_text.innerText='Chat '+m_name;
}
bNew=(navigator.appVersion.indexOf("MSIE 6.")>=0 && document.compatMode!="BackCompat");
var docelem = (bNew) ? document.documentElement : document.body;
scrollY=docelem.scrollTop;
scrollX=docelem.scrollLeft;
var my=cY+scrollY, mx=cX+scrollX, mby=docelem.clientHeight-130, mbx=docelem.clientWidth-180;
if(cY>mby) my=mby+scrollY;
if(my<0) my=0;
if(cX>mbx) mx=mbx+scrollX;
if(mx<0) mx=0;
menu.style.left=mx;
menu.style.top=my;
var bkfr=document.all.skype_tb_hideframe;
bkfr.style.left=mx;
bkfr.style.top=my;
bkfr.style.display="block";
}
function runCMD(link) {
window.location.href="http://skype_tb:"+link+"/"+skype_curid;
}
function skype_tb_imgOnOff(imgName,onoff) {
if(document.images)
document[imgName].src=document[imgName+onoff].src;
}
var skype_hcolors=Array("#ffff19","#ffff32","#ffff4b","#ffff64","#ffff7d","#ffff96","#ffffaf","#ffffc8","#ffffe1","");
var skype_helems=null;
function FadeYellow() {
if(skype_helems==null)
skype_helems=document.getElementsByName("softomate_highlight");
setTimeout("DoFadeYellow(0);",200);
}
function DoFadeYellow(cnt) {
if(cnt>9)
return;
var bkclr=skype_hcolors[cnt];
setTimeout('DoFadeYellowItem("'+bkclr+'",0);',1);
setTimeout('DoFadeYellow('+(cnt+1)+');',200);
}
function DoFadeYellowItem(bkclr,idx) {
if(idx==skype_helems.length)
return;
setTimeout('DoFadeYellowItem("'+bkclr+'",'+(idx+1)+');',1);
var el=skype_helems[idx];
el.style.background=bkclr;
}
</script>
<div id="skype_menu" style="position:absolute;visibility:hidden;background-color:none;left:0px;top:0px;">
<table class="skype_tb_table" onMouseMove="CheckSkype();" onMouseOut="HideSkype();skype_active=false;" width="180" height="130" cellpadding="0" cellspacing="1" background="%path%bg_popup.bmp">
<tr class="skype_tb_tr" height="28" valign="top" style="vertical-align:top;">
<td class="skype_tb_td" width="172" valign="middle" style="vertical-align:middle;">
<img name="skype_tb_img_close_on" border="0" src="%path%close_on.bmp" width="17" height="17" style="visibility:hidden;">
<img name="skype_tb_img_close_off" border="0" src="%path%close_off.bmp" width="17" height="17" style="visibility:hidden;">
</td>
<td class="skype_tb_td" width="28" align="middle" valign="middle" style="vertical-align:middle;">
<a onMouseOut="skype_tb_imgOnOff('skype_tb_img_close','_off')" onMouseOver="skype_tb_imgOnOff('skype_tb_img_close','_on');"><img name="skype_tb_img_close" onClick="HideSkypeFull();" border="0" src="%path%close_off.bmp" width="17" height="17"></a>
</td>
</tr>
<tr class="skype_tb_tr" height="100">
<td class="skype_tb_td" align="center" valign="top" colspan="2" style="vertical-align:top;">
<table onMouseMove="CheckSkype();" width="171" border="0" cellspacing="2" cellpadding="2" style="font-family: Courier New, Verdana, Arial, Helvetica, sans-serif;font-size:10px;color: #003366;">
<tr class="skype_tb_tr" onMouseOver="CheckSkype();">
<td class="skype_tb_td" width="16" align="center" valign="middle"><img class="skype_tb_img" src="%path%call.gif" width="16" height="16"></td>
<td class="skype_tb_td" align="left" nowrap id="skype_tb_callline"><a id="call_text" class="skype_tb_link" onclick="runCMD('call');return false;" href="call">Call</a></td>
</tr>
<tr class="skype_tb_tr" id="skype_tb_menu_chat" onMouseOver="CheckSkype();">
<td class="skype_tb_td" align="center" valign="middle"><img class="skype_tb_img" src="%path%chat.gif" width="16" height="16"></td>
<td class="skype_tb_td" align="left" nowrap><a id="chat_text" class="skype_tb_link" onclick="runCMD('chat');return false;" href="chat">Chat</a></td>
</tr>
<tr class="skype_tb_tr" id="skype_tb_menu_add" onMouseOver="CheckSkype();">
<td class="skype_tb_td" align="center" valign="middle"><img class="skype_tb_img" src="%path%add_to_contacts.gif" width="16" height="16"></td>
<td class="skype_tb_td" align="left" nowrap><a id="contact_text" class="skype_tb_link" onclick="runCMD('contact');return false;" href="add_contacts">Add to Contacts</a></td>
</tr>
</table>
</td>
</tr>
</table>
</div>